Determining the health of other nodes in a same cluster based on physical link information

ABSTRACT

The embodiments disclosed herein relate to using SNMP functionality for fast and accurate detection of node failure in a computer cluster. When cluster nodes are connected via a switch that provides SNMP capability, a trap mechanism can be used to immediately and proactively notify cluster nodes that a particular cluster node is disconnected from the network, potentially even before the remaining cluster nodes have noticed a lack of response. In addition, when a cluster node notices a lack of response from a particular cluster node, the switch can be queried for link status and traffic information that can be used for fast determination of node status.

TECHNICAL FIELD

The present disclosure relates to detecting node failure in a node cluster. More specifically, the disclosure relates for identifying node failure based on physical link information.

BACKGROUND

A computer cluster includes two or more cluster nodes. Each cluster node is a computer host on which cluster software is installed and executed. Each node performs a common set of tasks, which may be controlled and scheduled by software. Nodes in the cluster work cooperatively with each other and may be viewed as a single system. Working together requires consensus among the nodes, making it important for each node to have accurate knowledge of the other nodes in the cluster. One common task that each node performs is determining which nodes are currently active. When a node stops responding, each other node comes to recognize that the failed node is no longer in the cluster.

One mechanism for detecting a cluster node failure relies on sending a heartbeat message to other nodes in the cluster. A lack of a response from a node to the heartbeat message within an established timeout period may lead to the conclusion that the node has failed. Another heartbeat-based variant mechanism sets the timeout period to be a function of prior responses (aka Adaptive Failure Detectors) rather than a fixed timeout value.

The approaches described in this section are approaches that could be pursued, but not necessarily approaches that have been previously conceived or pursued. Therefore, unless otherwise indicated, it should not be assumed that any of the approaches described in this section qualify as prior art merely by virtue of their inclusion in this section.

BRIEF DESCRIPTION OF THE DRAWINGS

The embodiments are illustrated by way of example and not by way of limitation in the figures of the accompanying drawings. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and they mean at least one. In the drawings:

FIG. 1 is a block diagram that illustrates components of the system, in accordance with one or more embodiments;

FIG. 2 is a block diagram that illustrates components of an example SNMP-enabled switch, in accordance with one or more embodiments;

FIG. 3 is a flow diagram that illustrates a trap-based detection mechanism for detecting node failure, in accordance with one or more embodiments;

FIG. 4 is a flow diagram that illustrates a heartbeat-based mechanism for detecting node failure, in accordance with one or more embodiments;

FIG. 5 is a block diagram that illustrates an example system using trap-based node failure detection, in accordance with one or more embodiments;

FIG. 6 is a block diagram that illustrates an example system using heartbeat-based node failure detection, in accordance with one or more embodiments;

FIG. 7 shows a block diagram that illustrates a computer system, in accordance with one or more embodiments.

DETAILED DESCRIPTION

In the following description, for the purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding. One or more embodiments may be practiced without these specific details. Features described in one embodiment may be combined with features described in a different embodiment. In some examples, well-known structures and devices are described with reference to a block diagram form in order to avoid unnecessarily obscuring the present invention.

The problem of cluster node failure detection is one of the most critical issues to be addressed in cluster computing. Concluding that a node has failed and should be removed from the cluster may include two steps: (a) detecting anomalous node behavior and (b) verifying that the node is really dead and not just temporarily unresponsive. Because legitimate reasons can delay a node from performing certain tasks, such as executing a very large query, it is important to verify that a detected anomaly results from a hard systemic failure and not a transient recoverable error.

The cost of removing a node from a cluster includes at least diminished remaining compute capacity for the cluster. In addition, clients that were connected to the removed node may lose work-in-progress, need to reconnect to another node, and perform recovery. Thus, if a decision to remove a node is made too quickly, the decision may be inaccurate. Deciding to remove a cluster node based on a false-positive failure detection incurs this unnecessary cost.

Conversely, there is a cost associated with delaying a decision to evict a node that has permanently failed. Waiting too long to evict a failed node can cause the entire cluster to freeze and applications running on the cluster to hang. The cluster requires consensus among nodes to operate properly. While the cluster nodes try to validate that another node has failed and should be evicted, cluster operation may halt waiting for a response from the failed node. In a clustered database application, for example, no transactions can commit. To increase accuracy, known methods use a time-consuming mechanism to gather sufficient verification information, which slows the node eviction process. Thus, the decision to remove a node from a cluster needs to be both accurate and fast. However, known methods for node failure detection trade off accuracy and speed.

One method of node failure detection involves a monitoring node sending a heartbeat health message to a target node, which responds to the heartbeat health message. If the response from the target node is received by the monitoring node within a timeout interval (i.e. before a timeout), then the target node is believed to be up and participating in the cluster. If no response is received from the target node before the timeout, then the target node's health is suspect, but further evidence is required to rule out a temporary issue that might resolve itself. The heartbeat-based mechanisms are directed to determining how to establish an optimal combination of (a) the amount of time to wait for a response to heartbeat message from a target node in which the first missed heartbeat response detects that the target node is potentially down (the timeout) and (b) a number of missed heartbeats to verify that the node is down. The first missed response to a heartbeat message from the target node may identify anomalous behavior. To avoid a premature eviction of the target node, the monitoring node may retry the heartbeat a number of times, and when the count of missing heartbeat responses reaches a pre-defined maximum value, the monitoring node may conclude that there is a systemic problem.

Detecting a single missing heartbeat response is not an accurate way to determine node failure. Lengthening the timeout period may reduce inaccuracy, but as the timeout period is increased, so is the time when the cluster may freeze if the target node is really down or inaccessible. In addition, each time the heartbeat is retried, the monitoring node waits for the timeout interval to expire before proceeding.

1. General Overview

One or more embodiments include at least one cluster node determining the health of a target cluster node that is in a same cluster based on the characteristics of a physical link between the target cluster node and a network device. If a target cluster node within a cluster is no longer connected to or responsive on a corresponding network device port, then the target cluster node may be classified as a failed node and evicted from the cluster. If an amount of data received on a network device port connected to a target cluster node falls below a threshold value, then the target cluster node may be classified as a failed node and evicted from the cluster. Any of the other nodes in the same cluster may begin the eviction process of the target cluster node.

In an example, cluster nodes are connected via a Simple Network Management Protocol (SNMP)-enabled switch, or a switch providing functionality comparable to SNMP as described herein, information about communication with nodes in the cluster can be obtained directly from the switch. The communication information can help determine whether a node is still an active member of the cluster. SNMP is an Internet Standard protocol that collects and organizes information about managed devices on IP networks.

When a device is disconnected from a switch port, or the port itself goes down, there is an electrical disruption that is immediately physically detectable. Using SNMP, this port status information may be provided to cluster nodes as an indication of status of the cluster node that was connected to a particular switch port. Upon receiving a link down status from the switch, a monitoring node may conclude, without needing to gather other corroborative evidence, that the target node connected to the down port should be removed from the list of nodes in the cluster.

In another embodiment, a heartbeat mechanism for detecting node failure may be supplemented with SNMP capability. Specifically, a monitoring node may identify anomalous behavior in a target node when the monitoring node fails to receive a response to a heartbeat message before the end of a timeout period. Instead of retrying heartbeats to verify that a node has failed, the switch may quickly and accurately provide information to verify the node status. In response to receiving a query for the status of a physical link, the switch may provide a link up or link down indication. If the link is down, the monitoring node may conclude with high probability that the target node is not available to participate in cluster tasks, and the monitoring node may share this information with other nodes in a consensus-based node eviction process. If the link is up, then traffic statistics provided by the switch may indicate how much data was transmitted by and received from the target node over the link during a certain interval of time. If the link is up but no traffic is sent and received, the node may be hung.

Some embodiments described in this Specification and/or recited in the claims may not be included in this General Overview section.

2. System Components

FIG. 1 is a block diagram that illustrates components of the system, in accordance with one or more embodiments. Components may be added, removed, modified, or combined. Functionality described in relation to one component may instead be implemented by another component. Accordingly, the specific components illustrated and/or described herein should not be construed as limiting the scope of any of the claims.

Node Cluster 100 comprises a three-node cluster including Node 120, Node 130, and Node 140 communicating with each other through Network Device 110. Node 120 is physically connected to network device 110 by physical link 150; node 130 is physically connected to network device 110 by physical link 160; and node 140 is physically connected to network device 110 by physical link 160. Nodes 120, 130, and 140 may be computer hosts that run clustering software. The software causes the computer hosts to operate collaboratively and to be viewed as a single system. Working together requires consensus among cooperating nodes, making it important for each node to have accurate knowledge of the other nodes in the cluster. Each node performs a same set of tasks, which may be controlled and scheduled by software. One task that each node performs is identifying and monitoring the status of other nodes in the cluster. When a node stops responding, other nodes may determine that the failed node is no longer in the cluster.

In an embodiment, network device 110 is a switch and physical links 150, 160, and 170 are directly connected to distinct ports on the switch. In an embodiment, network device 110 receives subscription requests from compute nodes that request receipt of an event notification if the network device 110 detects that a particular physical link has failed. When the physical link goes down, the node connected to the link cannot communicate with the rest of the cluster. A hardware interrupt caused by a physical link failure may cause the switch to send an event notification to the set of cluster nodes that have subscribed to the specific physical link failure. In an embodiment, network device 110 also receives requests for status information for a particular physical link. The status information may be an indication of the link being up (operational) or down (non-operational). The status information may also include statistical information regarding the amount of traffic that has been send/received over the physical link.

FIG. 2 is a block diagram that illustrates components of a network device, in accordance with one or more embodiments. Components may be added, removed, modified, or combined. Functionality described in relation to one component may instead be implemented by another component. Accordingly, the specific components illustrated and/or described herein should not be construed as limiting the scope of any of the claims.

Network device 110 is embodied in FIG. 2 as Switch 200. Switch 200 may respond to requests for status of the switch ports. In an embodiment, the switch comprises components Trap Registrar 250, Trap Notifier 260, Traffic Data Server 270, Trap Registry 210, Port Availability Monitor 220, Traffic Monitor 230, and Port Statistics 240.

Trap registrar 250 may receive subscription requests from a monitoring cluster node. The trap registrar 250 may record the subscription in trap registry 210 that may be stored in a portion of memory on the switch.

Port availability monitor 220 monitors the port status for the switch ports. If a port is detected to be non-operational (down), then trap notifier 260 may send a trap notification to monitoring nodes that are in the trap registry as interested in receiving an event notification.

Traffic data server 270 may receive requests for certain traffic flow data on a particular switch port. Traffic Monitor 230 stores traffic data statistic information in Port Statistic 240 which may be stored in a portion of memory on the switch.

3. Process Description

The clustering software running on each of the cluster nodes maintains a list of other nodes in the cluster. In an embodiment, the list of nodes includes all other nodes in the cluster. In another embodiment, each node may maintain a list comprising a subset of the active nodes in the cluster. The clustering software on a cluster node verifies that every node on the list is an active member of the cluster. When the clustering software discovers a node that is no longer active in the cluster, such a node is removed from the list. Determining that a node is no longer in the cluster may be based on observing that the node is unresponsive. The techniques described herein are directed to a fast and accurate way to determine when a node has left the cluster. These techniques may be useful independent of how the cluster software responds to learning that a node has left the cluster.

FIG. 3 is a flow diagram that illustrates a trap-based detection mechanism for detecting node failure, in accordance with one or more embodiments. Operations described herein, with reference to FIG. 3, may be omitted, modified, or rearranged. Operations not illustrated in FIG. 3 may be performed instead of or in addition to the illustrated operations. Accordingly, the operations as described herein should not be construed to limit the scope of any of the claims.

FIG. 3 presents operations performed by a monitoring node interacting with network device 110 in the computer cluster to determine the status of a particular target node. To communicate with network device 110, the monitoring node may be configured with the address of network device 110 or the monitoring node may discover the location of the network device 110 at run time. The operations are performed to determine whether the target node belongs on the active node list for the cluster. While the operations reference a single monitoring node and a single target node for purposes of clarity, any and all of the nodes may perform these same operations. Furthermore, a monitoring node may monitor any number of target nodes in the same cluster. In Operation 310, a monitoring node selects a target node from a list of active cluster nodes. In Operation 320, the monitoring node is subscribed to network failure events for the target node. In an embodiment, the monitoring node itself sends a message to network device 110 requesting to be notified as the monitoring node if network device 110 detects a failure in the physical link to which the target node is connected. In an alternate embodiment, a node may register/subscribe another node as the monitoring node to receive failure notifications upon detecting a failure with the target node. For example, when a node joins the cluster and establishes a list of other nodes in the cluster, the new node may subscribe the other nodes in the list to its own failures.

The network device 110 may maintain a subscription table that associates the monitoring node with the target node and/or the physical link connected to the target node.

When network device 110 detects a failure in a physical link, the network device may determine that there is a subscription for notification of the failed physical link and may send an event notification to the subscribed monitoring node. The monitoring node receives the event notification from network device 110 for the failed physical link in Operation 330.

In an alternative embodiment, network device 110 may associate each physical link with a set of physical links that are connected to nodes belonging to the same cluster. When one of the physical links in the set fails, network device 110 may send a link failure notification to nodes connected to the other physical links in the set.

In Operation 340, the monitoring node may start a task for removing, from the cluster, the compute node connected to the failed physical link. The task for removing a node from a cluster requires consensus with at least a portion of the other nodes. A person of skill in the art would understand that there are a variety of known ways that consensus can be achieved, and a node removed from a cluster once a monitoring node detects that a target node is down. For example, one of the remaining active cluster nodes may be elected as a master cluster node that may update the list of currently active node and inform the evicted node that the evicted node is no longer in the cluster, perhaps through a shared memory channel.

This proactive event notification mechanism provided by the network device may coexist with, and independent of, other known ways for cluster nodes to detect node failure. However, receiving an event notification is a direct and immediate way to confirm node failure in a single step.

FIG. 4 is a flow diagram that illustrates a heartbeat-based mechanism for detecting node failure, in accordance with one or more embodiments. Operations described herein, with reference to FIG. 3, may be omitted, modified, or rearranged. Operations not illustrated in FIG. 3 may be performed instead of or in addition to the illustrated operations. Accordingly, the operations as described herein should not be construed to limit the scope of any of the claims.

A common way of monitoring the health of nodes in a compute cluster is to send heartbeat messages between pairs of nodes. The sender of the heartbeat message (i.e., monitoring node) monitors the health of the heartbeat message receiver (i.e., target node). If the monitoring node does not receive a response back from the target node within a certain timeout interval, the monitoring node may take further steps to determine whether the unresponsive node is down or just temporarily delayed. The flow illustrated in FIG. 4 provides a fast and accurate way to determine whether to start an eviction process of the target node.

The flow is performed from the perspective of a monitoring node monitoring a particular target node. In Operation 420, the monitoring node sends a heartbeat health message to the target node. If responses are received back from the target node in a timely manner, then the monitoring node again sends heartbeat messages after waiting for some time interval. However, if in Operation 430 the monitoring node has not received a response back from the target node within a threshold amount of time, then the flow proceeds to Operation 440. A person of skill in the art will appreciate that there are a variety of ways to determine the threshold amount of time to wait for a response including static configuration and dynamic determination at runtime. Any such determination of the timeout interval may be compatible with the flow of FIG. 4.

Alternative methods for detecting anomalous behavior may be used instead of or in addition to a heartbeat protocol. For example, cluster nodes processing data in a pipeline configuration may notice that no work is being delivered from upstream. For example, if cooperating nodes partition shared memory (or shared storage) such that a certain node is expected to write data into a particular portion of the memory, then lack of expected data written to that portion of memory may indicate a problem with the node. In general, communication between nodes that use shared memory or shared storage rather than the network may be used to observe artifacts of a node's functioning.

Regardless of whichever triggering event raises suspicion about a node's heath, the triggering event may be followed up by querying the switch for more direct and immediate information about the status of the node. The switch may even be queried periodically or otherwise, without detection of any triggering event. In Operation 440, the monitoring node may request status information about the target node. More specifically, the network device may provide information on the physical link connected to the target node such as whether the link is operational and how much traffic has traversed the link. As an example, the network statistics received in response to the first query may indicate 0.3 gigabytes of traffic has been received over the link. In an embodiment, the traffic statistics returned to the monitoring node from the network device may not have meaning in isolation. To determine the amount of traffic flowing over the physical link, in Operation 450, the monitoring node may wait a certain interval, then issue a second query to the network device for determining how much traffic has traversed the link. In Operation 460, the difference in the statistics returned in the second response as compared to the first response is calculated to provide an indication of how much traffic traversed the physical link during the certain time interval. As an example, at time t1 the network device may indicate that 30.5 MB of traffic has been received from the target node over the physical link. At time t2, which is 5 seconds after t1, the network device may indicate that 35.2 MB of traffic has been received from the target node over the physical link. Subtracting the two statistics resulting in determining a rate of 4.7 MB/5 seconds.

In an embodiment, operations 440-460 may be replaced with a single operation to receive traffic statistics per interval as computed by the network device. For example, the network device may maintain a log of traffic received from the target node during each interval (e.g., traffic received each second over the last ten minutes). When queried, the network device may compute the rate of traffic over the last n seconds and return a single value back to the monitoring node. The value represents a rate of traffic over a recent time interval rather than a total amount of traffic transmitted to and/or received from the target node.

In Operation 470, the amount of traffic that traversed the physical link during the certain time interval may be compared against one or more thresholds. A deviation from an expected amount of traffic may raise an alert. For example, if no traffic has traversed the link during the interval, but the link is operational, the target node may be hung. A hung node is not available to participate in the cluster. If the amount of traffic represents an anomaly for the target node, then in Operation 480, the monitoring node may initiate an eviction process for the target node.

4. Using SNMP for Fast Decision Making

As explained above, the capabilities of the switch that provide fast detection of a failed node may be provided by an implementation of SNMP (Simple Network Management Protocol). SNMP is part of the TCP/IP protocol suite. SNMP facilitates the exchange of management information between network devices. An SNMP Management Information Base (MIB) specifies for a particular kind of network device what information is available and how to reference the information. Devices that typically support SNMP include cable modems, routers, switches, servers, workstations, printers, and more. A MIB specifies the management data of a specific subsystem of an SNMP-enabled device, using a hierarchical namespace. Each entry in a MIB is identified by an object identifier (OID). This model permits management across all layers of the OSI reference model. An SNMP enabled switch provides data in response to a request for data defined by the SNMP MIB. For example, in Operation 440 of FIG. 4, the query to the switch may include the OID that represents traffic data for a particular switch port. The data provided by the switch may help identify the problems from switch port, cable and computing node in a SNMP-enabled environment. An SNMP implementation may make available critical data for improving the accuracy of decision making in a cluster eviction algorithm, and eventually speed-up the node eviction decision-making.

An SNMP-enabled switch maintains a table that maps each switch port to the device connected to the switch port. The port/device mapping table can be used to discover which switch port provides the physical link that connects a particular device to the network. The switch can respond to queries for status of a physical link that corresponds to a cluster node. The response from the switch may be used to determine whether the cluster node has network connectivity.

SNMP also provides an event-driven mechanism. This capability allows a switch to proactively notify a previously registered node that a failure has occurred without requiring the node to poll for such information. Detection and notification of an event for which there is registered interest is referred to as a “trap”. For example, RFC1573/1213 provide some useful snmpTraps, such as the linkDown/linkup snmpTrap (OID 1.3.6.1.2.1.31.1.1.1.14). The linkDown/linkup snmp Trap may indicate that there is a change in the status of a switch port. As in Operation 320 of FIG. 3, a monitoring node may request that the switch send the monitoring node an SNMP linkDown trap notification whenever a specified switch port changes state from up to down or from down to up. When a switch port changes state, the connectivity of the compute node to the rest of the cluster changes as a result. As in Operation 330 of FIG. 3, the switch may send an SNMP linkDown trap notification when a switch port state change is detected. This is a very direct and immediate way to find out that a cluster node has lost or regained connectivity.

One important addition to the basic set of SNMP standards (SMI, MIB, SNMP) is the RMON (Remote MONitor) specification. RMON defines a remote monitoring MIB that supplements MIB-II and provides a network manager with vital information about the interconnect network and host node. RMON provides standard functions in most router and switch devices. The RMON MIB includes OIDs that provide statistics data for a specified switch port. For example, some useful statistics provided by the RMON MIB include counters for the number of unicast, multicast, and broadcast packets received and the number of unicast, multicast, and broadcast packets sent through the switch port. In addition, the MIB provides a counter for the total number of octets received and another counter for the total number of octets sent. The values for counters of total octets received from and transmitted out of an interface are important for determining whether the interface is hung or slow. For example, if the switch port is known to be up but little or no traffic is transmitted or received, the device connected to the port is unable to process network packets, indicating that the node, not the network, is the problem.

5. Example

FIG. 5 is a block diagram that illustrates an example system using trap-based node failure detection, in accordance with one or more embodiments. Operations not illustrated in FIG. 5 may be performed instead of or in addition to the illustrated operations. Accordingly, the operations as described herein should not be construed to limit the scope of any of the claims.

In an embodiment, Switch 200 may be an SNMP-Enabled switch. Host 530 and Host 520 are cluster nodes within Node Cluster 500. Host 530 monitors the status of Host 520. Host 530 is connected to switch 200 (switch) by physical link 560 and Host 520 is connected to switch 200 by physical link 550. In FIGS. 5 and 6, the solid black arrows are logical operations occurring in numbered sequence. All communication between a host and the switch, represented by the logical operations, traverses a physical link. At time 1, Host 530 subscribes to communication failure with Host 520. In an embodiment, Host 530 has previously queried the switch to obtain the physical link connected to Host 520. The subscription requests notification of physical link 550 failing. At time 2, physical link 550 fails. At time 3, the switch sends a notification of link failure to host 530.

FIG. 6 is a block diagram that illustrates an example system using heartbeat-based node failure detection, in accordance with one or more embodiments. Operations not illustrated in FIG. 6 may be performed instead of or in addition to the illustrated operations. Accordingly, the operations as described herein should not be construed to limit the scope of any of the claims.

In FIG. 6, node cluster 500 also includes Host 540 that is connected to the switch by Physical Link 570. At time 1, host 520 hangs. At time 2, host 530 sends a heartbeat message to host 520. Although the heartbeat message is sent over physical link 550, host 520 is unable to process and respond to the message. After waiting for a timeout interval with no response from host 520, host 530 issues a first request for status of physical link 550 and traffic data for the link. At time 4, the switch sends a status indication that physical link 550 is operational (up) and a (first) traffic indicator. In an embodiment, the traffic indicator may comprise the number of bytes that have traversed the link since the switch was last started. At time 5, which occurs at a certain amount of time after time 4, host 530 issues a second request for a traffic indicator for physical link 550. At time 6, the switch sends a second traffic indicator. The difference between the second traffic indicator and the first traffic indicator provides the amount of traffic that was sent/received over physical link 550 during the interval between the first request and the second request. If the amount of traffic during that interval indicates an anomaly, then at time 7, host 530 may collaborate with other active nodes in the cluster to determine whether to evict host 520 from the cluster.

6. Computer Networks and Cloud Networks

In one or more embodiments, a computer network provides connectivity among a set of nodes. The nodes may be local to and/or remote from each other. The nodes are connected by a set of links. Examples of links include a coaxial cable, an unshielded twisted cable, a copper cable, an optical fiber, and a virtual link.

A subset of nodes implements the computer network. Examples of such nodes include a switch, a router, a firewall, and a network address translator (NAT). Another subset of nodes uses the computer network. Such nodes (also referred to as “hosts”) may execute a client process and/or a server process. A client process makes a request for a computing service (such as, execution of a particular application, and/or storage of a particular amount of data). A server process responds by executing the requested service and/or returning corresponding data.

A computer network may be a physical network, including physical nodes connected by physical links. A physical node is any digital device. A physical node may be a function-specific hardware device, such as a hardware switch, a hardware router, a hardware firewall, and a hardware NAT. Additionally or alternatively, a physical node may be a generic machine that is configured to execute various virtual machines and/or applications performing respective functions. A physical link is a physical medium connecting two or more physical nodes. Examples of links include a coaxial cable, an unshielded twisted cable, a copper cable, and an optical fiber.

A computer network may be an overlay network. An overlay network is a logical network implemented on top of another network (such as, a physical network). Each node in an overlay network corresponds to a respective node in the underlying network. Hence, each node in an overlay network is associated with both an overlay address (to address to the overlay node) and an underlay address (to address the underlay node that implements the overlay node). An overlay node may be a digital device and/or a software process (such as, a virtual machine, an application instance, or a thread) A link that connects overlay nodes is implemented as a tunnel through the underlying network. The overlay nodes at either end of the tunnel treat the underlying multi-hop path between them as a single logical link. Tunneling is performed through encapsulation and decapsulation.

In an embodiment, a client may be local to and/or remote from a computer network. The client may access the computer network over other computer networks, such as a private network or the Internet. The client may communicate requests to the computer network using a communications protocol, such as Hypertext Transfer Protocol (HTTP). The requests are communicated through an interface, such as a client interface (such as a web browser), a program interface, or an application programming interface (API).

In an embodiment, a computer network provides connectivity between clients and network resources. Network resources include hardware and/or software configured to execute server processes. Examples of network resources include a processor, a data storage, a virtual machine, a container, and/or a software application. Network resources are shared amongst multiple clients. Clients request computing services from a computer network independently of each other. Network resources are dynamically assigned to the requests and/or clients on an on-demand basis. Network resources assigned to each request and/or client may be scaled up or down based on, for example, (a) the computing services requested by a particular client, (b) the aggregated computing services requested by a particular tenant, and/or (c) the aggregated computing services requested of the computer network. Such a computer network may be referred to as a “cloud network.”

In an embodiment, a service provider provides a cloud network to one or more end users. Various service models may be implemented by the cloud network, including but not limited to Software-as-a-Service (SaaS), Platform-as-a-Service (PaaS), and Infrastructure-as-a-Service (IaaS). In SaaS, a service provider provides end users the capability to use the service provider's applications, which are executing on the network resources. In PaaS, the service provider provides end users the capability to deploy custom applications onto the network resources. The custom applications may be created using programming languages, libraries, services, and tools supported by the service provider. In IaaS, the service provider provides end users the capability to provision processing, storage, networks, and other fundamental computing resources provided by the network resources. Any arbitrary applications, including an operating system, may be deployed on the network resources.

In an embodiment, various deployment models may be implemented by a computer network, including but not limited to a private cloud, a public cloud, and a hybrid cloud. In a private cloud, network resources are provisioned for exclusive use by a particular group of one or more entities (the term “entity” as used herein refers to a corporation, organization, person, or other entity). The network resources may be local to and/or remote from the premises of the particular group of entities. In a public cloud, cloud resources are provisioned for multiple entities that are independent from each other (also referred to as “tenants” or “customers”). The computer network and the network resources thereof are accessed by clients corresponding to different tenants. Such a computer network may be referred to as a “multi-tenant computer network.” Several tenants may use a same particular network resource at different times and/or at the same time. The network resources may be local to and/or remote from the premises of the tenants. In a hybrid cloud, a computer network comprises a private cloud and a public cloud. An interface between the private cloud and the public cloud allows for data and application portability. Data stored at the private cloud and data stored at the public cloud may be exchanged through the interface. Applications implemented at the private cloud and applications implemented at the public cloud may have dependencies on each other. A call from an application at the private cloud to an application at the public cloud (and vice versa) may be executed through the interface.

In an embodiment, tenants of a multi-tenant computer network are independent of each other. For example, a business or operation of one tenant may be separate from a business or operation of another tenant. Different tenants may demand different network requirements for the computer network. Examples of network requirements include processing speed, amount of data storage, security requirements, performance requirements, throughput requirements, latency requirements, resiliency requirements, Quality of Service (QoS) requirements, tenant isolation, and/or consistency. The same computer network may need to implement different network requirements demanded by different tenants.

In one or more embodiments, in a multi-tenant computer network, tenant isolation is implemented to ensure that the applications and/or data of different tenants are not shared with each other. Various tenant isolation approaches may be used.

In an embodiment, each tenant is associated with a tenant ID. Each network resource of the multi-tenant computer network is labeled with a tenant ID. A tenant is permitted access to a particular network resource only if the tenant and the particular network resources are associated with a same tenant ID.

In an embodiment, each tenant is associated with a tenant ID. Each application, implemented by the computer network, is labeled with a tenant ID. Additionally or alternatively, each data structure and/or dataset, stored by the computer network, is labeled with a tenant ID. A tenant is permitted access to a particular application, data structure, and/or dataset only if the tenant and the particular application, data structure, and/or dataset are associated with a same tenant ID.

As an example, each database implemented by a multi-tenant computer network may be labeled with a tenant ID. Only a tenant associated with the corresponding tenant ID may access data of a particular database. As another example, each entry in a database implemented by a multi-tenant computer network may be labeled with a tenant ID. Only a tenant associated with the corresponding tenant ID may access data of a particular entry. However, the database may be shared by multiple tenants.

In an embodiment, a subscription list indicates which tenants have authorization to access which applications. For each application, a list of tenant IDs of tenants authorized to access the application is stored. A tenant is permitted access to a particular application only if the tenant ID of the tenant is included in the subscription list corresponding to the particular application.

In an embodiment, network resources (such as digital devices, virtual machines, application instances, and threads) corresponding to different tenants are isolated to tenant-specific overlay networks maintained by the multi-tenant computer network. As an example, packets from any source device in a tenant overlay network may only be transmitted to other devices within the same tenant overlay network. Encapsulation tunnels are used to prohibit any transmissions from a source device on a tenant overlay network to devices in other tenant overlay networks. Specifically, the packets, received from the source device, are encapsulated within an outer packet. The outer packet is transmitted from a first encapsulation tunnel endpoint (in communication with the source device in the tenant overlay network) to a second encapsulation tunnel endpoint (in communication with the destination device in the tenant overlay network). The second encapsulation tunnel endpoint decapsulates the outer packet to obtain the original packet transmitted by the source device. The original packet is transmitted from the second encapsulation tunnel endpoint to the destination device in the same particular overlay network.

7. Hardware Overview

According to one embodiment, the techniques described herein are implemented by one or more special-purpose computing devices. The special-purpose computing devices may be hard-wired to perform the techniques, or may include digital electronic devices such as one or more application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or network processing units (NPUs) that are persistently programmed to perform the techniques, or may include one or more general purpose hardware processors programmed to perform the techniques pursuant to program instructions in firmware, memory, other storage, or a combination. Such special-purpose computing devices may also combine custom hard-wired logic, ASICs, FPGAs, or NPUs with custom programming to accomplish the techniques. The special-purpose computing devices may be desktop computer systems, portable computer systems, handheld devices, networking devices or any other device that incorporates hard-wired and/or program logic to implement the techniques.

For example, FIG. 7 is a block diagram that illustrates a computer system 700 upon which an embodiment of the invention may be implemented. Computer system 700 includes a bus 702 or other communication mechanism for communicating information, and a hardware processor 704 coupled with bus 702 for processing information. Hardware processor 704 may be, for example, a general purpose microprocessor.

Computer system 700 also includes a main memory 706, such as a random access memory (RAM) or other dynamic storage device, coupled to bus 702 for storing information and instructions to be executed by processor 704. Main memory 706 also may be used for storing temporary variables or other intermediate information during execution of instructions to be executed by processor 704. Such instructions, when stored in non-transitory storage media accessible to processor 704, render computer system 700 into a special-purpose machine that is customized to perform the operations specified in the instructions.

Computer system 700 further includes a read only memory (ROM) 708 or other static storage device coupled to bus 702 for storing static information and instructions for processor 704. A storage device 710, such as a magnetic disk or optical disk, is provided and coupled to bus 702 for storing information and instructions.

Computer system 700 may be coupled via bus 702 to a display 712, such as a cathode ray tube (CRT), for displaying information to a computer user. An input device 714, including alphanumeric and other keys, is coupled to bus 702 for communicating information and command selections to processor 704. Another type of user input device is cursor control 716, such as a mouse, a trackball, or cursor direction keys for communicating direction information and command selections to processor 704 and for controlling cursor movement on display 712. This input device typically has two degrees of freedom in two axes, a first axis (e.g., x) and a second axis (e.g., y), that allows the device to specify positions in a plane.

Computer system 700 may implement the techniques described herein using customized hard-wired logic, one or more ASICs or FPGAs, firmware and/or program logic which in combination with the computer system causes or programs computer system 700 to be a special-purpose machine. According to one embodiment, the techniques herein are performed by computer system 700 in response to processor 704 executing one or more sequences of one or more instructions contained in main memory 706. Such instructions may be read into main memory 706 from another storage medium, such as storage device 710. Execution of the sequences of instructions contained in main memory 706 causes processor 704 to perform the process steps described herein. In alternative embodiments, hard-wired circuitry may be used in place of or in combination with software instructions.

The term “storage media” as used herein refers to any non-transitory media that store data and/or instructions that cause a machine to operate in a specific fashion. Such storage media may comprise non-volatile media and/or volatile media. Non-volatile media includes, for example, optical or magnetic disks, such as storage device 710. Volatile media includes dynamic memory, such as main memory 706. Common forms of storage media include, for example, a floppy disk, a flexible disk, hard disk, solid state drive, magnetic tape, or any other magnetic data storage medium, a CD-ROM, any other optical data storage medium, any physical medium with patterns of holes, a RAM, a PROM, and EPROM, a FLASH-EPROM, NVRAM, any other memory chip or cartridge, content-addressable memory (CAM), and ternary content-addressable memory (TCAM).

Storage media is distinct from but may be used in conjunction with transmission media. Transmission media participates in transferring information between storage media. For example, transmission media includes coaxial cables, copper wire and fiber optics, including the wires that comprise bus 702. Transmission media can also take the form of acoustic or light waves, such as those generated during radio-wave and infra-red data communications.

Various forms of media may be involved in carrying one or more sequences of one or more instructions to processor 704 for execution. For example, the instructions may initially be carried on a magnetic disk or solid state drive of a remote computer. The remote computer can load the instructions into its dynamic memory and send the instructions over a telephone line using a modem. A modem local to computer system 700 can receive the data on the telephone line and use an infra-red transmitter to convert the data to an infra-red signal. An infra-red detector can receive the data carried in the infra-red signal and appropriate circuitry can place the data on bus 702. Bus 702 carries the data to main memory 706, from which processor 704 retrieves and executes the instructions. The instructions received by main memory 706 may optionally be stored on storage device 710 either before or after execution by processor 704.

Computer system 700 also includes a communication interface 718 coupled to bus 702. Communication interface 718 provides a two-way data communication coupling to a network link 720 that is connected to a local network 722. For example, communication interface 718 may be an integrated services digital network (ISDN) card, cable modem, satellite modem, or a modem to provide a data communication connection to a corresponding type of telephone line. As another example, communication interface 718 may be a local area network (LAN) card to provide a data communication connection to a compatible LAN. Wireless links may also be implemented. In any such implementation, communication interface 718 sends and receives electrical, electromagnetic or optical signals that carry digital data streams representing various types of information.

Network link 720 typically provides data communication through one or more networks to other data devices. For example, network link 720 may provide a connection through local network 722 to a host computer 724 or to data equipment operated by an Internet Service Provider (ISP) 726. ISP 726 in turn provides data communication services through the world wide packet data communication network now commonly referred to as the “Internet” 728. Local network 722 and Internet 728 both use electrical, electromagnetic or optical signals that carry digital data streams. The signals through the various networks and the signals on network link 720 and through communication interface 718, which carry the digital data to and from computer system 700, are example forms of transmission media.

Computer system 700 can send messages and receive data, including program code, through the network(s), network link 720 and communication interface 718. In the Internet example, a server 730 might transmit a requested code for an application program through Internet 728, ISP 726, local network 722 and communication interface 718.

The received code may be executed by processor 704 as it is received, and/or stored in storage device 710, or other non-volatile storage for later execution.

Embodiments are directed to a system with one or more devices that include a hardware processor and that are configured to perform any of the operations described herein and/or recited in any of the claims below.

In an embodiment, a non-transitory computer readable storage medium comprises instructions which, when executed by one or more hardware processors, causes performance of any of the operations described herein and/or recited in any of the claims.

Any combination of the features and functionalities described herein may be used in accordance with one or more embodiments. In the foregoing specification, embodiments have been described with reference to numerous specific details that may vary from implementation to implementation. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense. The sole and exclusive indicator of the scope of the invention, and what is intended by the applicants to be the scope of the invention, is the literal and equivalent scope of the set of claims that issue from this application, in the specific form in which such claims issue, including any subsequent correction. 

What is claimed is:
 1. A non-transitory computer readable medium comprising instructions which, when executed by one or more hardware processors, causes performance of operations comprising: determining, by a first node, that a second node is in a same node cluster as the first node; based at least on the second node being in the same node cluster as the first node: subscribing, by the first node, to events indicating failure of a direct physical link between the second node and a network device, wherein subscribing to events indicating failure of the direct physical link between the second node and the network device comprises sending a physical link identifier of a direct physical link between the second node and the network device; receiving, by the first node from the network device, an event indicating failure of the direct physical link between the second node and the network device; and initiating, by the first node, a node eviction process to remove the second node from the node cluster.
 2. The medium of claim 1, wherein: the network device is an SNMP-enabled switch; and subscribing by the first node comprises transmitting an SNMP request to the SNMP-enabled switch.
 3. The medium of claim 1, wherein: subscribing to events indicating failure of a direct physical link between the second node and a network device comprises sending an IP address or a physical network address of the second node to the network device.
 4. The medium of claim 1, wherein the operations further comprise: prior to subscribing to events indicating failure of the direct physical link, sending an identifier of the second node with a query to the network device, and receiving in response to the query a physical link identifier of the direct physical link between the second node and the network device.
 5. The medium of claim 1, wherein a node cluster comprises a set of communicatively coupled nodes that conduct tasks based on a consensus among the set of nodes, wherein each node of the set of nodes is a computer.
 6. The medium of claim 1, wherein the event indicating failure of the direct physical link between the second node received by the first node from the network device is an SNMP trap notification.
 7. A method comprising: determining, by a first node, that a second node is in a same node cluster as the first node; based at least on the second node being in the same node cluster as the first node: subscribing, by the first node, to events indicating failure of a direct physical link between the second node and a network device, wherein subscribing to events indicating failure of the direct physical link between the second node and the network device comprises sending a physical link identifier of a direct physical link between the second node and the network device; receiving, by the first node from the network device, an event indicating failure of the direct physical link between the second node and the network device; and initiating, by the first node, a node eviction process to remove the second node from the node cluster.
 8. The method of claim 7, wherein: the network device is an SNMP-enabled switch; and subscribing by the first node comprises transmitting an SNMP request to the SNMP-enabled switch.
 9. The method of claim 7, wherein: subscribing to events indicating failure of a direct physical link between the second node and a network device comprises sending an IP address or a physical network address of the second node to the network device.
 10. The method of claim 7, further comprising: prior to subscribing to events indicating failure of the direct physical link, sending an identifier of the second node with a query to the network device, and receiving in response to the query a physical link identifier of the direct physical link between the second node and the network device.
 11. The method of claim 7, wherein the first node receives a trap notification from the network device responsive to the network device experiencing a network failure.
 12. The method of claim 7, wherein a node cluster comprises a set of communicatively coupled nodes that conduct tasks based on a consensus among the set of nodes, wherein each node of the set of nodes is a computer.
 13. The method of claim 7, wherein the event indicating failure of the direct physical link between the second node received by the first node from the network device is an SNMP trap notification.
 14. A system comprising: at least one hardware device including a processor; and the system configured to perform operations comprising: determining, by a first node, that a second node is in a same node cluster as the first node; based at least on the second node being in the same node cluster as the first node: subscribing, by the first node, to events indicating failure of a direct physical link between the second node and a network device, wherein subscribing to events indicating failure of the direct physical link between the second node and the network device comprises sending a physical link identifier of a direct physical link between the second node and the network device; receiving, by the first node from the network device, an event indicating failure of the direct physical link between the second node and the network device; and initiating, by the first node, a node eviction process to remove the second node from the node cluster.
 15. The system of claim 14, wherein: the network device is an SNMP-enabled switch; and subscribing by the first node comprises transmitting an SNMP request to the SNMP-enabled switch.
 16. The system of claim 14, wherein: subscribing to events indicating failure of a direct physical link between the second node and a network device comprises sending an IP address or a physical network address of the second node to the network device.
 17. The system of claim 14, wherein the operations further comprise: prior to subscribing to events indicating failure of the direct physical link, sending an identifier of the second node with a query to the network device, and receiving in response to the query a physical link identifier of the direct physical link between the second node and the network device.
 18. The system of claim 14, wherein a node cluster comprises a set of communicatively coupled nodes that conduct tasks based on a consensus among the set of nodes, wherein each node of the set of nodes is a computer.
 19. The system of claim 14, wherein the event indicating failure of the direct physical link between the second node received by the first node from the network device is an SNMP trap notification.
 20. The system of claim 14, wherein the first node receives a trap notification from the network device responsive to the network device experiencing a network failure. 